//    Copyright (C) Kherty.  All rights reserved.
using System;
using System.CodeDom;

namespace OpenLS.Spreadsheet.Parsing
{
    /// <summary>
    /// Summary description for ParsingException.
    /// </summary>
    public class ParsingException : ApplicationException
    {
        public ParsingException(CodeLinePragma pragma, string message)
            : base("\n" + pragma + ": " + message)
        {
            FileName = pragma.FileName;
            //Column = pragma.ColumnNumber;
            Line = pragma.LineNumber;
            parsingMessage = message;
        }
        public readonly string FileName;
       //\\ public readonly int Column;
        public readonly int Line;
        public readonly string parsingMessage;

    }
}
